<head>
<% item = @model.find(params[:id]) rescue nil%>
<% @title = item.title rescue item.full_name rescue item.name rescue nil%>
<title>LinkLens: <%= @title  %> :<%= controller.action_name %>)</title>
<%= stylesheet_link_tag 'mainStyle' %> <%# stylesheet_link_tag 'scaffold' %>
<% if request.user_agent.include? "iPhone"%>
  <%= stylesheet_link_tag 'iphone' %>
<%end%>
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="/favicon.ico"type="image/x-icon" />

 <%= javascript_include_tag  :defaults %> 
</head>
<%#  debug session.model[:id]%>